<template>
    <div>
        <a-modal
            title="修改个人档案"
            :visible="visible"
            :footer="null"
            @cancel="visible = false"
            width="100%"
            wrapClassName="personalProfile-full-modal"
        >
            <div>
                <informationIndex @modifiedSuccess="modifiedSuccess" ref="informationIndexRef" />
                <!-- <div style="display: flex;justify-content: flex-end;">
                    <a-button  @click="visible = false">取消</a-button>
                </div> -->
            </div>
        </a-modal>
    </div>
</template>
<script>
import informationIndex from '../../inspectorSystem/personalInfo/index.vue'
export default {
    components:{
        informationIndex,
    },
    props:{

    },
    data(){
        return{
            visible:false,
        }
    },
    watch:{

    },
    mounted(){
        
    },
    methods:{
        getData(row){
            this.$nextTick(()=>{
                // {fuserid:row.id,isOwn:true}
                this.$refs.informationIndexRef.getData(row.fuserid)
            })
        },
        modifiedSuccess(){
            this.$emit('modifiedSuccess')
            //console.log('我在这里了？？7779')
        },
    }
}
</script>
<style lang="less">
.personalProfile-full-modal {
  .ant-modal {
    max-width: 100%;
    top: 0;
    padding-bottom: 0;
    margin: 0;
  }
  .ant-modal-content {
    display: flex;
    flex-direction: column;
    height: calc(100vh);
  }
  .ant-modal-body {
    flex: 1;
    padding: 5px;
  }
}
</style>